package com.bwie.service.impl;

import com.bwie.mapper.DeliverMapper;
import com.bwie.mapper.EnquiryMapper;
import com.bwie.pojo.TbDeliver;
import com.bwie.pojo.TbEnquiry;
import com.bwie.service.FeignService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title:
 * @BelongProjecet month0617
 * @BelongPackage com.bwie.service.impl
 * @Description:
 * @Copyright 研发一部
 * @Author: Mr.yan
 * @Date: 2024/6/17 12:53
 * @Version V1.0
 */
@Service
public class FeignServiceImpl implements FeignService {

    @Autowired
    private EnquiryMapper enquiryMapper;
    @Autowired
    private DeliverMapper deliverMapper;

    @Override
    public R deliverList() {
        List<TbDeliver> deliverList = deliverMapper.deliverList();
        return R.success(deliverList);
    }

    @Override
    public R enquiryList() {
        List<TbEnquiry> enquiryList = deliverMapper.enquiryList();
        return R.success(enquiryList);
    }
}
